package com.mavenq.fly.config;

import com.mavenq.fly.business.entity.TempData;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

@Configuration
public class AppConfig {
    
    @Bean
    public BlockingQueue<TempData> dataQueue(@Value("${app.queue.capacity:1000}") int queueCapacity) {
        return new LinkedBlockingQueue<>(queueCapacity);
    }
}